import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import Index from '../views/AddData/Index.vue';
import Login from "@/views/AddData/Login.vue";
import Maneage from "@/views/AddData/Maneage.vue";
import addProvinceData from "@/views/AddData/addProvinceData.vue";
import addCountryData from "@/views/AddData/addCountryData.vue";
// import
const routes = [
  {
    path: '/',
    name:'Index',
    component:()=>import('@/views/welcome')

  },
  {
    path:'/index',
    name: 'Main',
    component: () => import('@/views/main-layout')
  },
  {
    path:'/add/index',
    component: Index
  },
  {
    path:'/add/login',
    component:Login
  },
  {
    path:'/add/maneage',
    component:Maneage
  },
  {
    path:'/add/addprovincedata',
    component:addProvinceData
  },
  {
    path:'/add/addcountrydata',
    component:addCountryData
  }
]

const router = new Router({
  routes: routes
})

export default router